package com.wfuhui.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户优惠券
 *
 */
@ApiModel(value = "UserCoupon", description = "用户优惠券")
public class UserCouponEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	private Integer id;
	// 用户id
	private Long userId;
	// 优惠券id
	private Integer couponId;
	// 状态
	@ApiModelProperty(value="状态：1未使用，2已使用，3已过期",name="status",required=true)
	private Integer status;

	private CouponEntity coupon;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * 设置：用户id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * 获取：用户id
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置：优惠券id
	 */
	public void setCouponId(Integer couponId) {
		this.couponId = couponId;
	}

	/**
	 * 获取：优惠券id
	 */
	public Integer getCouponId() {
		return couponId;
	}

	/**
	 * 设置：状态
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取：状态
	 */
	public Integer getStatus() {
		return status;
	}

	public CouponEntity getCoupon() {
		return coupon;
	}

	public void setCoupon(CouponEntity coupon) {
		this.coupon = coupon;
	}

}
